#ifndef TELA_H
#define TELA_H

#include <QtGui>
#include <QtOpenGL>
#include <QGLWidget>
#include <math.h>
#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#include <gl/gl.h>
#include <gl/glu.h>

class Tela : public QGLWidget
{
    Q_OBJECT

public:
    Tela(int left, int right, int bottom, int up, QWidget *parent);
    ~Tela();
    void clear();
    void paintPoint(int x, int y, int r, int g, int b);
    /*
    void paintLines(PlanoTela2D plano, Ponto *ponto, int length, QColor color, float width);
    void glVertexSelect(PlanoTela2D plano, Ponto *ponto, int length);
    */

protected:
    void initializeGL();
    void paintGL();

private:
    int xi;
    int xf;
    int yi;
    int yf;
};

#endif // TELA_H
